#ifndef _GAMESTRING_H_
#define _GAMESTRING_H_

#include "gameDefine.h"

// use utf-8 xml

class GameString : public baseSingle< GameString >
{
public:

	GameString();
	~GameString();

	fvoid					Init();
	fvoid					Release();

	fvoid					Load( const fbyte* path );
	const fbyte*			Convert( const fwchar* buffer );
	const fwchar*			GetString( const fbyte* id );
	const fbyte*			GetUtf8String( const fbyte* id );

	const fwchar*			GetTime( fint32 time );
	fint32					GetTime( const fwchar* buffer );


	const fbyte*			IntToString( int n , int radix = 10 );

protected:
private:

	map<string , string>	mUtf8StringMap;
	map<string , wstring>	mStringMap;
	wstring					mBuffer;
};

extern GameString* gGameString;

#endif


